From: Stefan Monnier Date: Sun, 2 Oct 2011 00:25:27 +0000 (-0400) Subject: * src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~2064 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5a554c3a26f416ef4c07f5b4ea63fe949ec42927;p=emacs.git * src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if they've been requested explicitly. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 29b48a1e790..814f6e8871d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -582,7 +582,7 @@ * help.el (describe-key-briefly): Copy previous standard-output change. -2011-09-13 PJ Weisberg (tiny change) +2011-09-13 PJ Weisberg * help.el (where-is): Respect non-standard standard-output. (Bug#9030) diff --git a/src/ChangeLog b/src/ChangeLog index d2aff7f7bf8..f8adae94c14 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-10-02 Stefan Monnier + + * minibuf.c (Finternal_complete_buffer): Only show internal buffers if + they've been requested explicitly (bug#9591). + 2011-10-01 Andreas Schwab * keymap.c (Fsingle_key_description): Use make_specified_string diff --git a/src/minibuf.c b/src/minibuf.c index 341d544ef51..f082cc01d97 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1859,8 +1859,8 @@ The arguments STRING and PREDICATE are as in `try-completion', /* First, look for a non-internal buffer in `res'. */ while (CONSP (bufs) && SREF (XCAR (bufs), 0) == ' ') bufs = XCDR (bufs); - if (NILP (bufs)) - /* All bufs in `res' are internal, so don't trip them out. */ + if (NILP (bufs) && EQ (Flength (res), Flength (Vbuffer_alist))) + /* All bufs are internal, so don't trip them out. */ return res; res = bufs; while (CONSP (XCDR (bufs)))